import request from '@/utils/request'

// 查询库房调拨列表
export function listTransferapply(query) {
  return request({
    url: '/bill/transferapply/list',
    method: 'get',
    params: query
  })
}

// 查询库房调拨详细
export function getTransferapply(guid) {
  return request({
    url: '/bill/transferapply/' + guid,
    method: 'get'
  })
}

// 新增库房调拨
export function addTransferapply(data) {
  return request({
    url: '/bill/transferapply',
    method: 'post',
    data: data
  })
}

// 修改库房调拨
export function updateTransferapply(data) {
  return request({
    url: '/bill/transferapply',
    method: 'put',
    data: data
  })
}

// 删除库房调拨
export function delTransferapply(guid) {
  return request({
    url: '/bill/transferapply/' + guid,
    method: 'delete'
  })
}

// 导出库房调拨
export function exportTransferapply(query) {
  return request({
    url: '/bill/transferapply/export',
    method: 'get',
    params: query
  })
}